/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.panomedic.kernel;

import com.panomedic.gui.AppFrame;
import com.panomedic.gui.Frame;
import com.panomedic.gui.Menu;
import com.panomedic.gui.PhotoPanel;
import com.panomedic.gui.ToolBar;

/**
 *
 * @author Yare
 */
public class VisualHandler {

    Kernel kernel;
    Frame frame;// = new AppFrame();
    
    private static VisualHandler instance = new VisualHandler();

    public VisualHandler() {
        this.kernel = Kernel.getInstance();
        this.frame = new AppFrame();
    }

    public void startVisualisation() {
        frame.Create();
    }

    public void setAppFrameVisible( boolean visible ) {
        frame.setVisible(visible);
    }
    
    public Menu getMenu() {
        return frame.getMenu();
    }

    public Frame getFrame() {
        return frame;
    }
    public PhotoPanel getPhotoPanel() {
        return frame.getPhotoPanel();
    }
    
    
    public static VisualHandler getInstance() {
        return instance;
    }

    ToolBar getToolBar() {
        return frame.getToolBar();
    }
    
    
}
